<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="sl" tagdir="/WEB-INF/tags" %>
<%@page import="com.solution.common.config.PublicConfig"%>
<%@page import="com.solution.admin.home.constants.IndexConstants"%>
<%
	String basePath = PublicConfig.ROOT_PATH;
	String imgRootURL = PublicConfig.IMG_ROOT_URL;
	String ossImgZoomWX = PublicConfig.OSS_IMG_ZOOM_WX; //微信图片缩放
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>分类</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics_wx/css/style.css">
<script src="<%=basePath%>/statics_wx/js/jquery.min.js"></script>
<script src="<%=basePath%>/statics_wx/js/js.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/plugins/layer/layer.js"></script>
<script type="text/javascript">
	//系统域名 
	var rootPath = '<%=basePath%>';
	// 系统上传文件展示域名
	var imgRootURL = '<%=imgRootURL%>';
	
	$(function(){
		//左侧一级分类点击事件
		$(".left_menu .a1").click(function(){
			$(".left_menu li").removeClass("current");
			$(this).closest("li").addClass("current");
			$(".myoverlay").hide();
			$(this).next().show();
		});
		//左侧二级分类点击事件
		$(".left_menu dt a").each(function(){
			$(this).click(function(){
				var category_id = $(this).attr("category_id");
				var parent_cateogry_id = $(this).closest("dt").find("#parent_category_id").val();
				var category_path = $(this).attr("category_path");
				var brand_ids = [];
				$("#brand_container li.current").each(function(){
					brand_ids.push($(this).find("a").attr("brand_id"));
				});
				
				// 异步查询热门搜索关键字
				url = rootPath + "/wx/product/category_search";
				var form = $('<form></form>');  
			    form.attr('action', url);
			    form.attr('method', 'post');
			    form.attr('target', '_self');
			    form.append('<input type="hidden" name="categoryId" value="'+category_id+'"/>');
			    form.append('<input type="hidden" name="categoryPath" value="'+category_path+'"/>');
			    form.append('<input type="hidden" name="parentCategoryId" value="'+parent_cateogry_id+'"/>');
			    form.append('<input type="hidden" name="brandIds" value="'+brand_ids.join(",")+'"/>');
			    form.appendTo("body");
			    form.submit();
			});
		});
		
		function initSpecCheck(container , main_product_price){
			container.find('li label').click(function(){
				if($(this).hasClass('checked')){
					$(this).addClass('checked');
				}else{
					$(this).addClass('checked');
					$(this).parent().siblings().find('label').removeClass('checked');
				}
				var spec_price = 0;
				$('.good_sxlist ul li label.checked').each(function(){
					spec_price = spec_price + parseFloat($(this).parent().attr("spec_price"));
				});
				var last_price = spec_price + parseFloat(main_product_price);
				
				container.parent().find("#v_product_price").html("￥<em>"+numberInteger(last_price)+"</em><span>"+numberDecimal(last_price)+"</span>");
			});
		}
		
		// initSpecCheck();
		
		/**
		$('.fl_list ul li .box3 .item-info h3 b a,#goods_editbox .bottom p .inputbtn1').click(function(){
			$('#goods_editbox').toggle();
		});
		*/
		
		
		
		// 关键字查询
		$("#search_key").keydown(function(event){
			if(event.keyCode==13){ 
				var search_key = $("#search_key").val();
				url = rootPath + "/wx/product/category_search";
				var form = $('<form></form>');  
			    form.attr('action', url);
			    form.attr('method', 'post');
			    form.attr('target', '_self');
			    form.append('<input type="hidden" name="searchKey" value="'+search_key+'"/>');
			    form.appendTo("body");
			    form.submit();
			} 
		});
		
		//搜索
		$("#doSearch").click(function(){
			var search_key = $("#search_key").val();
			url = rootPath + "/wx/product/category_search";
			var form = $('<form></form>');  
		    form.attr('action', url);
		    form.attr('method', 'post');
		    form.attr('target', '_self');
		    form.append('<input type="hidden" name="searchKey" value="'+search_key+'"/>');
		    form.appendTo("body");
		    form.submit();
		});
		
		// 关闭商品规格项筛选弹层
		$("#btn_close_product_spec").click(function(){
			$('#goods_editbox').toggle();
		});
		
		// 绑定添加购物车事件
		function init_add_to_shoppingcart(this_){
			// 商品名称 价格 从页面上取
			var product_name = this_.closest("h3").find("#product_name").val();
			var product_price_integer =  this_.closest("h3").find("#product_price_integer").val();
			var product_price_deciaml =  this_.closest("h3").find("#product_price_decimal").val();
			var product_image = this_.closest("h3").find("#product_image").val();
			var product_id = this_.attr("product_id");
			
			var main_product_price = this_.closest("h3").find("#main_product_price").val();
			
			$("#v_product_image").attr("src",imgRootURL+"/"+product_image + "");
			$("#v_product_name").text(product_name);
			$("#v_product_price").html("￥<em>"+product_price_integer+"</em><span>."+product_price_deciaml+"</span>");
			$("#v_product_id").val(product_id);
			
			var self = this_;
			// 查询商品规格项
			// 添加购物车
			var url = rootPath + "/wx/product/listProductSpec";
			var params = {
				productId : product_id
			};
			$.ajax({
				type : "post",
				url : url,
				data : params,
				datatype : "json",
				success : function(json) {
					if(json){
						$("#spec_container").html("");
						var has_spec = json.has_spec;
						if(has_spec == "true"){
							// 商品规格 
							var product_spec = json.product_spec;
							for(var i = 0 ; i < product_spec.length; i++){
								var spec = product_spec[i];
								var spec_value_list = spec.productSpecList;
								
								var spec_value_str = "";
								for(var j = 0; j <spec_value_list.length; j++){
									var spec_value = spec_value_list[j];
									spec_value_str += 
										"<li spec_price=\""+spec_value.specPrice+"\">"+
		                        			"<label "+(j == 0 ? "class='checked'" : "")+" spec_id=\""+spec_value.id+"\" >"+spec_value.specValue+"</label>"+
			                        	"</li>";
								}
								
								var product_spec_str = ""+ 
										"<div name=\"spec_list\" class=\"hd\">"+
						            		"<h3>"+spec.specName+"</h3>"+
							            "</div>"+
							            "<div class=\"bd\">"+
							            	"<div class=\"good_sxlist\">"+
							                	"<ul>"+
							                		spec_value_str+
							                    "</ul>"+
							                "</div>"+
							            "</div>";
								$("#spec_container").append($(product_spec_str));
								initSpecCheck($("#spec_container"), main_product_price);
							}
						}
						$("#v_buy_num").val("1"); //初始化数量
						$('#goods_editbox').toggle();
					}
				},
				error : function() {
					layer.msg('暂时无法查询商品规格项',{time:1000});
				}
			});
		}
		
		// 异步查询规格项,弹出规格项
		$("a[id='btn_add_to_shoppingcart']").each(function(){
			$(this).click(function(){
				init_add_to_shoppingcart($(this));
			});
		});
		
		// 减少购买数量
		$("#btn_reduce_buy_num").click(function(){
			var buy_num = $("#v_buy_num").val();
			if(buy_num != 1){
				$("#v_buy_num").val(parseInt(buy_num)-1);
			}
		});
		// 增加购买数量
		$("#btn_add_buy_num").click(function(){
			var buy_num = $("#v_buy_num").val();
			$("#v_buy_num").val(parseInt(buy_num)+1);
		});
		
		// 确认添加到的购物车
		$("#btn_buy_confirm").click(function(){
			var buy_num = $("#v_buy_num").val() || '1'; 
			if(isNaN(buy_num)||!(/^\d+$/.test(buy_num))) {
				layer.msg('只能输入整数',{time:1000}); 
				return false;
			}
			// 规格项选择
			var flag = true;
			var spec = [];
			$("div[name='spec_list']").each(function(){
				var spec_name= $(this).find("h3").text();
				var select_li = $(this).next("div.bd").find("label.checked");
				var selected_num = select_li.length;
				if(selected_num == 0){
					layer.msg('请选择'+spec_name,{time:2000});
					flag = false;
				}else{
					select_li.each(function(){
						spec.push({id:$(this).attr("spec_id"),specName:spec_name,specValue:$(this).text()});
					});
				}
			});
			
			if(!flag){
				return false;
			}
			
			// 添加购物车
			var url = rootPath + "/wx/shoppingcart/add";
			var params = {
				productId : $("#v_product_id").val(),
				buyNum : buy_num,
				addFlag : 1,
				specListJson:JSON.stringify(spec)
			};
			$.ajax({
				type : "post",
				url : url,
				data : params,
				datatype : "json",
				success : function(json) {
					if (json.resultCode == '1') {
						//更新购物车数量
						doGetShopCount();
						
						layer.msg('加入购物车成功',{time:1000});
						$('#goods_editbox').toggle();
					}
				},
				error : function() {
					layer.msg('暂时无法加入购物车',{time:1000});
				}
			});
		});
		
		// 上拉加载更多
		$(window).on('scroll',function(){
		    if($(window).scrollTop()>=$(document).height()-$(window).height()){
		    	
		    	var page_count = $("#sync_page_count").val();
		    	var current_page = $("#sync_page_num").val();
		    	if(current_page >= page_count){
		    		//layer.msg('已经到底了',{time:500});
		    		return false;
		    	}
		      	var params = "requestType=sync";
		    	$("input[id^='sync_']").each(function(){
		    		if($(this).attr("pname") == "pageNum"){
		    			params = params + "&"+$(this).attr("pname")+"="+(parseInt($(this).val())+1);
		    		}else{
		    			params = params + "&"+$(this).attr("pname")+"="+$(this).val();
		    		}
		      	});
		    	// 添加购物车
				var url = rootPath + "/wx/product/category_search";
				$.ajax({
					type : "post",
					url : url,
					data : params,
					datatype : "json",
					success : function(jsonObject) {
						var json = $.parseJSON(jsonObject);
						$("#sync_page_num").val(json.currentPage);
						if(json.recordList){
							$("#load_more_div").remove();
							for(var i = 0 ; i < json.recordList.length; i++){
								var product = json.recordList[i];
								var product_str = "<li>"+
										            	"<div class=\"box3\">"+
										                	"<div class=\"pic\">"+
										                    	"<a href=\""+rootPath+"/wx/product/detail?productId="+product.id+"\"><img src=\""+imgRootURL+"/"+product.mainImagePath+"?x-oss-process=image/resize,p_80\" /></a>"+
										                    "</div>"+
										                    "<div class=\"item-info\">"+
										                    	"<h2><a href=\""+rootPath+"/wx/product/detail?productId="+product.id+"\">"+product.productName+"</a></h2>"+
										                        "<h3>"+
										                        	"<strong>¥<em>"+product.productPriceInteger+"</em>."+product.productPriceDecimal+"</strong>"+
										                        	"<input type=\"hidden\" id=\"product_name\" value=\""+product.productName+"\"/>"+
																	"<input type=\"hidden\" id=\"product_image\" value=\""+product.mainImagePath+"\"/>"+
																	"<input type=\"hidden\" id=\"product_price_integer\" value=\""+product.productPriceInteger+"\"/>"+
																	"<input type=\"hidden\" id=\"product_price_decimal\" value=\""+product.productPriceDecimal+"\"/>"+
										                        	"<b>"+
										                        		"<a href=\"javascript:void(0)\" product_id=\""+product.id+"\" id=\"btn_add_to_shoppingcart\"></a>"+
										                        	"</b>"+
										                        "</h3>"+
										                    "</div>"+
										                "</div>"+
										            "</li>";
										            
								$("#product_list").append($(product_str));
							}
							
							var load_more = "<li id=\"load_more_div\">"+
										            "<div class=\"box4\" style=\"text-align:center;\">"+
								                	"<h2>加载中.......</h2>"+
								                "</div>"+
								            "</li>";
								            if(json.currentPage  == json.pageCount){
							load_more = "<li id=\"load_more_div\">"+
										            "<div class=\"box4\" style=\"text-align:center;\">"+
								                	"<h2>没有更多内容啦</h2>"+
								                "</div>"+
								            "</li>";
							}
							$("#product_list").append($(load_more));
							
							
							$("a[id='btn_add_to_shoppingcart']").each(function(){
								$(this).click(function(){
									init_add_to_shoppingcart($(this));
								});
							});
						}
					},
					error : function() {
						layer.msg('查询商品失败',{time:1000});
					}
				});
		    }
		});
		
		//品牌筛选
		$("#icon_sx").click(function(){
			$("#brand_box").toggle();
			var this_ = $(this);
			//判断品牌是否有选择
			if ($("#brand_box ul li").hasClass("current")){
				$("#icon_sx").addClass('current'); 
			} else {
				$("#icon_sx").removeClass('current'); 
			}
			if($("#brand_box").css("display") == 'none'){
				$("body").css("overflow","auto");
			} else {
				$("body").css("overflow","hidden");
			}
		});
		
		// 品牌条件筛选
		$("#brand_container a").click(function(){
			$(this).closest("li").toggleClass("current");
			
			//判断选项是否都已选择
			var lis = $("#brand_container li");
			var clis = $("#brand_container").find(".current"); 
			if (lis.length == clis.length) {
				$('#brand_box .qxbtn li').addClass('current');
			} else {
				$('#brand_box .qxbtn li').removeClass('current');
			}
		});

		//点击分类和品牌的筛选框空白处，关闭筛选框
		$('body').on('click', function(e){
			//alert($(e.target).attr('class'))
			if ($(e.target).attr('class') == 'fl_dropdown') {
				$('.fl_dropdown').hide();
			} else if ($(e.target).attr('class') == "overlay") {
				$('.overlay').hide();
			}
			//判断品牌是否有选择
			if ($("#brand_box ul li").hasClass("current")){
				$("#brandbtn").parent().addClass('current'); 
			}
			//判断品牌是否有选择
			if ($("#brand_box ul li").hasClass("current")){
				$("#icon_sx").addClass('current'); 
			} else {
				$("#icon_sx").removeClass('current'); 
			}
		});
		//判断品牌是否有选择
		if ($("#brand_box ul li").hasClass("current")){
			$("#icon_sx").addClass('current'); 
		}
		
		// 根据品牌查询
		$("#btn_brand_search").click(function(){
			var brand_ids = [];
			$("#brand_container li.current").each(function(){
				brand_ids.push($(this).find("a").attr("brand_id"));
			});
			//var category_id = $("#param_categoryId").val();
			//var parent_cateogry_id = $("#param_parentCategoryId").val();
			//var category_path = $("#param_categoryPath").val();
			
			url = rootPath + "/wx/product/category_search";
			var form = $('<form></form>');  
		    form.attr('action', url);
		    form.attr('method', 'post');
		    form.attr('target', '_self');
		    //form.append('<input type="hidden" name="categoryId" value="'+category_id+'"/>');
		    //form.append('<input type="hidden" name="categoryPath" value="'+category_path+'"/>');
		    //form.append('<input type="hidden" name="parentCategoryId" value="'+parent_cateogry_id+'"/>');
		    form.append('<input type="hidden" name="brandIds" value="'+brand_ids.join(",")+'"/>');
		    form.appendTo("body");
		    form.submit();
		});
		
		//品牌查询子类选择
		$('#brand_box .qxbtn li').click(function(){
			$(this).toggleClass('current');
			if($(this).hasClass('current')) {
				$("#brand_container li").removeClass('current').addClass('current');
			} else {
				$("#brand_container li").toggleClass('current');
			}
		});
		
		// 品牌查询条件重置
		$("#btn_brand_reset").click(function(){
			$('#brand_box .qxbtn li').removeClass("current");
			$("#brand_container li").removeClass("current");
		});
	});
	
	
</script>
</head>
<body style="background: #fff">
	<c:set var="rootPath" value="<%=basePath %>"></c:set>
	<c:set var="imgRootURL" value="<%=imgRootURL %>"></c:set>
	<c:set var="ossImgZoomWX" value="<%=ossImgZoomWX %>"></c:set>
	
	<c:forEach items="${hiddenParamMap }" var="item">
		<input type="hidden"  id="sync_${item.key }" pname="${item.key}" value="${item.value}"/>
	</c:forEach>
	<input type="hidden"  id="sync_page_num" pname="pageNum"  value="${pageBean.currentPage }"/>
	<input type="hidden"  id="sync_num_per_page" pname="numPerPage" value="${pageBean.numPerPage}"/>
	<input type="hidden"  id="sync_page_count"  pname="pageCount" value="${pageBean.pageCount }"/>
		
	<%--添加购物车弹出规格项 --%>
	<div class="overlay" id="goods_editbox" style="display:none;">
		<div class="goods_editbox">
		<a id="btn_close_product_spec" href="javascript:void(0)" class="icon_close"></a>
	    <div class="goods_editbox_con">
	    	<input type="hidden"  id="v_product_id"  value=""/>
 	    	<div class="good_info1">
	        	<div class="pic">
	            	<img id="v_product_image" src="images/index_icon1.png" />
	            </div>
	            <div class="item-info">
	            	<h2 id="v_product_name"></h2>
	                <h3 id="v_product_price"></h3>
	            </div>
	        </div>
	        <div class="good_info2"  id="spec_container">
	           
	        </div>
	        <div class="good_info3">
	        	<strong>数量</strong>
	            <div class="txt1">
	            	<b>
						<a href="javascript:void(0)" id="btn_reduce_buy_num" class="icon_jian_gray"></a>
						<span>
							<input type="text" id="v_buy_num" value="1" >
						</span>
						<a href="javascript:void(0)" id="btn_add_buy_num" class="icon_jia"></a>
					</b>
	            </div>
	        </div>
	    </div>
	    <div class="bottom">
	    	<p>
	        	<input type="button" id="btn_buy_confirm" class="inputbtn1" value="确定" />
	        </p>
	    </div>
	    </div>
	</div>
	
	


<%--品牌筛选弹层 --%>
<style>
.pp_list ul.qxbtn  li i {
   position: absolute;
   cursor: pointer;
   right: 0.2rem;
   top: 50%;
   width: .36rem;
   height: .36rem;
   margin-top: -.17rem;
   background: url(<%=basePath%>/statics_wx/images/icon-q1.png) no-repeat;
    background-size: .35rem .35rem;
}
.pp_list ul.qxbtn  li.current i{ right: 0.2rem;
    top: 50%;
    width: .36rem;
    height: .36rem;
    margin-top: -.17rem;background: url(<%=basePath%>/statics_wx/images/icon-q2.png) no-repeat;background-size:.35rem .35rem;}
}

</style>

<div class="fl_dropdown" style="display:none;z-index:99;" id="brand_box">
	<input type="hidden" id="param_categoryId" value="${hiddenParamMap['categoryId']}"/>
	<input type="hidden" id="param_categoryPath" value="${hiddenParamMap['categoryPath']}"/>
	<input type="hidden" id="param_parentCategoryId" value="${hiddenParamMap['parentCategoryId']}"/>
	<div class="pp_box" style="top:0.9rem;">
        <style>
        .pp_list ul.fl_list11 li{border-bottom:0.02rem solid #efefef}
		.pp_list ul.fl_list11 li a{font-size:0.28rem;}
        </style>
        <div class="pp_right" style="margin-left: .2rem;margin-right:0.2rem">
        	<div class="pp_list" >
        		<ul class="qxbtn">
	        		<li style="text-align:right;border-bottom:0.02rem solid #ddd;"><a href="javascript:void(0)" style="padding-right:0.7rem"><span>全选</span><i></i></a></li>
        		</ul>
        		<ul class="fl_list11"  id="brand_container">
            	<c:forEach items="${brandList}" var="brand" varStatus="ind">
	            		<li ${hiddenParamMap[brand.brandCode] != null ? "class='current'" : ""}>
	            			<a href="javascript:void(0)" brand_id="${brand.brandCode}" >${brand.brandNameCh}<i></i></a>
	            		</li>
                </c:forEach>
	           </ul>
            </div>
        </div>
        
        <div class="operate_part">
        	<ul>
            	<li style="width:50%">
                	<a href="javascript:void(0)" id="btn_brand_reset" class="btn1">重置</a>
                </li>
                <li style="width:50%">
                	<a href="javascript:void(0)" id="btn_brand_search" class="btn2">确定</a>
                </li>
            </ul>
        </div>
    </div>
</div>

	<div class="search_part13">
		<style>
			.search_part13{position:relative;}
			.search_part13 a#icon_sx{position:absolute;left:0;top:0;width:1rem;text-align:center;line-height:0.88rem;}
			.search_part13 a#icon_sx span{font-size:0.28rem;display:inline-block;vertical-align:middle;}
			.search_part13 a#icon_sx.current span{color:red;}
			.search_part13 a#icon_sx  i{
				width: 0.26rem;
				height: 0.26rem;
				display:inline-block;
				vertical-align:middle;
				background: url(<%=basePath%>/statics_wx/images/icon-sx.png) no-repeat;
				background-size: 0.26rem 0.26rem;
			}
		</style>
		<a href="javascript:void(0)" id="icon_sx"><span>品牌</span></a>
		<div class="search_part13_con" style="padding-left:1.2rem;">
			<div class="search_part13_con1">
				<i></i>
				<p>
					<input type="text" id="search_key"  name="searchKey" class="inputstyle1" placeholder="一体机" value="${searchKey }"/>
				</p>
	        	<a id="doSearch" href="javascript:void(0);">搜索<u></u></a>
			</div>
		</div>
	</div>
	<div class="headerfixed"></div>
	<div class="left_menu">
		<ul>
			<c:forEach items="${topCategoryList }" var="category">
			<li ${category.id == parentCategoryId?"class='current'":""}>
				<a href="javascript:void(0)" class="a1"><span>${category.categoryName }</span><i></i><em></em></a>
				<div class="myoverlay">
					<div class="cate_list">
						<dl>
							<c:forEach items="${category.subCategoryList }" var="subcategory">
							<dt>
								<input type="hidden" value="${category.id}"  id="parent_category_id"/>
								<a href="javascript:void(0)" category_id="${subcategory.id}" category_path = ${subcategory.path}><span>${subcategory.categoryName}</span><i></i></a>
							</dt>
							</c:forEach>
						</dl>
					</div>
				</div>
			</li>
			</c:forEach>
		</ul>
	</div>

	<div class="right_part">
		<div class="fl_list">
			<ul id="product_list">
				<c:forEach items="${productList }" var="product">
				<li>
					<div class="box3">
						<div class="pic">
							<a href="${rootPath}/wx/product/detail?productId=${product.id}"><img src="${imgRootURL}/${product.mainImagePath}${ossImgZoomWX}" /></a>
						</div>
						<div class="item-info">
							<h2>
								<a href="${rootPath}/wx/product/detail?productId=${product.id}">${product.productName }</a>
							</h2>
							<h3>
								<strong>¥<em>${product.productPriceInteger }</em>.${product.productPriceDecimal }</strong>
								<input type="hidden" id="product_name" value="${product.productName }"/>
								<input type="hidden" id="product_image" value="${product.mainImagePath }"/>
								<input type="hidden" id="product_price_integer" value="${product.productPriceInteger }"/>
								<input type="hidden" id="product_price_decimal" value="${product.productPriceDecimal }"/>
								<input type="hidden" id="main_product_price" value="${product.mainProductPrice }"/>
								<b><a href="javascript:void(0)" product_id="${product.id}" id="btn_add_to_shoppingcart"></a></b>
							</h3>
						</div>
					</div>
				</li>
				</c:forEach>
				<c:if test="${pageBean.pageCount == 0 }">
	            	<li id="load_more_div">
	            		<div class="box4" style="text-align:center;">
							<h2>查询无数据</h2>
						</div>
					</li>
	            </c:if>
	            <c:if test="${pageBean.pageCount == pageBean.currentPage }">
	            	<li id="load_more_div">
	            		<div class="box4" style="text-align:center;">
							<h2>没有更多数据啦</h2>
						</div>
					</li>
	            </c:if>
	            <c:if test="${pageBean.pageCount > 0 && pageBean.pageCount != pageBean.currentPage }">
	            	<li id="load_more_div">
	            		<div class="box4" style="text-align:center;">
							<h2>加载中.......</h2>
						</div>
					</li>
	            </c:if>
			</ul>
		</div>
	</div>
	<jsp:include page="../wx_footer.jsp" />
</body>
</html>